package com.ls.socketio;

import com.corundumstudio.socketio.SocketIOServer;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.Resource;

/**
 * @author 11356
 * @date 2019/09/02
 */
@SpringBootApplication
public class SocketioApplication implements CommandLineRunner {

    @Resource
    private SocketIOServer server;

    public static void main(String[] args) {
        SpringApplication.run(SocketioApplication.class, args);
    }

    @Override
    public void run(String... args) {
        server.start();
    }
}
